package com.springboot.auth.authorization.service;

import com.springboot.auth.authorization.entity.User;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@Service
public interface IUserService {

    /**
     * 根据用户唯一标识获取用户信息
     *
     * @param uniqueId
     * @return
     */
    @Cacheable(value = "#id")
    User getByUniqueId(String uniqueId);

    User getUserByOpenId(String openId);

    String getSSceneStr(String openId);
}
